<!DOCTYPE html>
<html lang="zh">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <input type="button" onclick="msg()" value="msg测试" />
    <input type="button" onclick="load()" value="load测试" />
    <input type="button" onclick="ale()" value="alert测试" />
    <input type="button" onclick="con()" value="confirm测试" />

    <script src="/alay.min.js"></script>
    <script>
        function msg() {
            alay.msg('提示消息')
        }
        function load() {
            let elm = alay.loading()
            setTimeout(o => {
                alay.close(elm)
            }, 2000)
        }
        function ale() {
            alay.alert('提示消息内容', r => {
                console.log('关闭了提示框：' + r)
            })
        }
        function con() {
            alay.confirm('提示消息内容', r => {
                console.log('关闭了提示框：' + r)
            })
        }
    </script>
</body>

</html>